#include <iostream>
#include <unistd.h>
using namespace std;

int main()
{
  printf("hello");
  // 创建子进程，并分流
  int ret = fork();
  if(ret > 0)
  {
    cout << "I am Father ";
  }
  else if (ret == 0)
  {
    cout << "I am child";
  }
  else cout << "fork() fail" << endl;
}




